//
//  SubmitViewController.m
//  JiJinFinance
//
//  Created by 李东晓 on 15/12/2.
//  Copyright © 2015年 LiDongXiao. All rights reserved.
//

#import "SubmitViewController.h"
#import "ChooseHBViewController.h"
#import "PayViewController.h"
@interface SubmitViewController ()<UIScrollViewDelegate>
@property (strong, nonatomic) IBOutlet UIButton *ButXY;
@property (strong, nonatomic) IBOutlet UIButton *ButtonPick;
@property (strong, nonatomic) IBOutlet UIButton *ButTJ;

@end

@implementation SubmitViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [_ButXY.layer setCornerRadius:6];
    [_ButXY.layer setMasksToBounds:YES];
    
    [_ButTJ.layer setCornerRadius:3];
    [_ButTJ.layer setMasksToBounds:YES];
    
    self.title = @"爱车贷";
    
    [self BackButton];
    
}
- (IBAction)XYClick {

}
//提交按钮
- (IBAction)SubmitClick {
    PayViewController * pay = [[PayViewController alloc]init];
    [self.navigationController pushViewController:pay animated:YES];
}

- (IBAction)PickClick {
    ChooseHBViewController * choose = [[ChooseHBViewController alloc]init];
    [self.navigationController pushViewController:choose animated:YES];
    
}




#pragma 返回按钮
-(void)BackButton
{
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setFrame:CGRectMake(0, 0,13,20)];
    
    [button setBackgroundColor:[UIColor clearColor]];
    
    [button setImage:[UIImage imageNamed:@"navigation_back"] forState:UIControlStateNormal];
    
    [button addTarget:self action:@selector(BackClick) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem * barbutton = [[UIBarButtonItem alloc]initWithCustomView:button];
    
    self.navigationItem.leftBarButtonItem = barbutton;
    
}
#pragma 返回按钮的点击方法
-(void)BackClick
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
